package com.hjh.testdemo.ui.device.info

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.hjh.testdemo.entity.DeviceInfoItem

/**
 * @author： hjh
 * @createDate： 2025/6/9 14:17
 * @description：
 * @qq： 3472903821
 * @version: 1.0
 */
class DeviceInfoViewModel : ViewModel() {

    private val _deviceInfo = MutableLiveData<List<DeviceInfoItem>>(listOf())
    val deviceInfo: LiveData<List<DeviceInfoItem>>
        get() = _deviceInfo

    fun updateDeviceInfo(deviceInfo: List<DeviceInfoItem>) {
        this._deviceInfo.value = deviceInfo
    }
}